<#import "/macro.ftl" as m>
<@m.page_header title='后台' />
<div id="page-content-wrapper">

    <div id="page-title">
        <h3>
            红包记录
        </h3>
        <div id="breadcrumb-right">
            <div class="float-right">
                <a href="/redpacket/release" class="btn medium primary-bg">
                    <span class="button-content">
                    <i class="glyph-icon icon-cog float-left"></i>
                    添加
                    </span>
                </a>
            </div>
        </div>
    </div>

    <div id="page-content">
        <table class="table" id="exp">
            <thead>
            <tr>
            	<th>编码</th>
            	<th>描述</th>
                <th>金额</th>
                <th>用户</th>
                <th>状态</th>
                <th>创建时间</th>
                <th>消费时间</th>
                <th>过期时间</th>
                <th>操作人</th>
            </tr>
            </thead>
            <tbody>
            <#list pager.list as bonusRecord>
                <tr>
	                <td>${bonusRecord.code}</td>
	                <td style="WORD-WRAP: break-word" width="200">${bonusRecord.description}</td>
                    <td>${bonusRecord.amount}</td>
                    <td>${bonusRecord.user.mobile}</td>
                    <td>${bonusRecord.status}</td>
                    <td>${bonusRecord.createDate?string("yyyy-MM-dd")}</td>
                    <td>${(bonusRecord.consumeDate?string("yyyy-MM-dd"))!''}</td>
                    <td>${(bonusRecord.expiredDate?string("yyyy-MM-dd"))!''}</td>
                    <td>${(bonusRecord.operator)!''}</td>
                </tr>
            </#list>
            </tbody>
        </table>
    </div>

    <div class="button-group center-div">
    ${helper.content}
    </div>

</div>
<script language="JavaScript">
    <#if msg!=null>
        $.jGrowl("${msg}", {sticky:!1,position:'bottom-right',theme:'bg-green'});
    </#if>
</script>